<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{@$pageTitle@}</title>
{#include file="Public:head" /#}
</head>

<body id="mainBody">
<div id="all">
    {#rabbet id="tips" /#}    
	<div class="box3 w pr">
    	<div class="box3_wrap">
        	<div class="box3_top">
            	<h4 class="pl10 fb">文章信息管理</h4>
                <div class="funcBox">
                <form action="" name="filterForm" method="get">
                	<input type="hidden" name="plu" value="article" />
                	<input type="hidden" name="a" value="articlelist" />
                    <input type="button" value="添加文章" onclick="location.replace('admin.php?plu=article&a=articleadd&url={@$activeUrl@}');" class="btn1 fl" />
                    <select class="select1 w150 fl ml5" name="sort_id" onchange="location.replace('{@:get_active_url('sort_id',false)@}&sort_id='+this.value);">
                        <option value="">查看所有文章</option>
                        <option value="-1" {#eq name="_GET.sort_id|intval" value="-1"#}selected="selected"{#/eq#}>查看未分类文章</option>
                        {#volist name="sortList" id="sort"#}
                        <option value="{@$sort.id@}" {#eq name="_GET.sort_id|intval" value="$sort['id']"#}selected="selected"{#/eq#} >{@$sort.sort_name@}</option>
                        {#/volist#}
                    </select>
                    {#notempty name="statusList"#}
                    <select class="select1 w60 fl ml5" name="status" onchange="location.replace('{@:get_active_url('status',false)@}&status='+this.value);">
                        <option value="">全部</option>
                        {#volist name="statusList" id="status"#}
                        <option value="{@$k@}" {#eq name="_GET.status|intval" value="$k"#}selected="selected"{#/eq#} >{@$status@}</option>
                        {#/volist#}
                    </select>
                    {#/notempty#}
                    <input type="text" name="keywords" value="{@$_GET['keywords']|deep_htmlspecialchars@}" class="input2 w100 fl ml5" />
                    <input type="submit"  value="搜索" class="btn1 w50 fl ml5" />
                    <div class="cb"></div>
                </form>
                </div>
            </div>
        	<div class="box3_main">
            	<form action="" name="editForm" method="post">
                <table class="table3 w rowPoint">
                	<thead>
                        <tr class="fb">
                            <th width="30">选择</th>
                            <th width="80">ID</th>
                            <th class="tl">文章名称</th>
                            <th width="160">文章状态</th>
                            <th width="120">所属分类</th>
                            <th width="160">添加时间</th>
                            <th class="tl">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    {#volist name="list" id="data" empty="<tr><td colspan='7' class='tc'>暂无相关信息</td></tr>"#}
                        <tr>
                            <td class="tc"><input type="checkbox" name="id[]" class="del" value="{@$data.id@}" /></td>
                            <td class="tc">{@$data.id@}</td>
                            <td><a href="admin.php?plu=article&a=articleedit&id={@$data.id@}&url={@$activeUrl@}" class="a-black-n">{@$data.article_name@}</a></td>
                            <td class="tc">
                            	{#eq name="data.status" value="1"#}启用{#else/#}禁用{#/eq#}
                                {#volist name="data.tags" id="tags"#}
                                	{#eq name="tags.status" value="1"#}&nbsp;|&nbsp;{@$tags.tag@}{#/eq#}
                                {#/volist#}
                            </td>
                            <td class="tc">{#eq name="data.sort_id" value="-1"#}未分类{#else/#}{@$data.sort_name@}{#/eq#}</td>
                            <td class="tc">{@$data.add_time|date="Y-m-d H:i:s", ###@}</td>
                            <td><a href="admin.php?plu=article&a=articleedit&id={@$data.id@}&url={@$activeUrl@}">编辑数据</a></td>
                        </tr>
                    {#/volist#}
                    </tbody>
                </table>
                <div class="manage1 fl"><input type="checkbox" onclick="getChoose(this, '.del');" class="ml10" /><input type="button" id="enterResponse" onclick="if (confirm('确定要删除选中的数据吗？')) { btnSubmit('form[name=editForm]', 'admin.php?plu=article&a=articledelete&url={@$activeUrl@}');} else { return false;}" value="删除所选" class="ml10 btn2" /></div>
                <div class="page1 fr">{@$page@}</div>
                <div class="cb"></div>
                </form>
            </div>
        </div>
        <div class="box3_lt pa"></div>
        <div class="box3_rt pa"></div>
    </div>
</div>
</body>
</html>
